﻿using UnityEngine;
using System.Collections;

public class AreaView : MonoBehaviour {
	public UISprite areaName;
	public UILabel areaLevelLabel;
	public UILabel areaExpLabel;
	public UILabel alreadyOpendResourceRegionCountLabel;
	public UILabel dispatchMemberCountLabel;
	public UILabel remainDispatchTimeLabel;
	public UILabel[] dispatchRewardLabels;

	public UISprite newOpenRegionMark;
	public UILabel[] resourceRegionNameLabels;

	public GameObject selectDispatchMemberWindow;
	public GameObject dispatchMemberListWindow;

	bool isDispatched = false;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	public void SetAreaViewInfos(int mainAreaIndex, int areaIndex)
	{
	}
	
	public void SendResearch()
	{
		//GotoBattleReadyScene
	}
	
	public void GotoDisPatch()
	{
		if( isDispatched )
		{
			dispatchMemberListWindow.SetActive(true);
		}
		else
		{
			selectDispatchMemberWindow.SetActive(true);
		}
	}

	public void OnClickedStartDispatchButton()
	{
	}

	public void OnClickedCancelDispatchButton()
	{
	}

}
